home *** CD-ROM | disk | FTP | other *** search
- //-------------------------------------------------------------------
- //
- // This code is copyright 2001 by G5 Software.
- // Any unauthorized usage, either in part or in whole of this code
- // is strictly prohibited. Violators WILL be prosecuted to the
- // maximum extent allowed by law.
- //
- //-------------------------------------------------------------------
-
- class CHangarMesh
- {
- string MeshFile = "Models/B_Hangar.mesh";
- string SkinFile = "Models/B_Hangar.skin";
- }
-
- class CHangarStateControl
- extends CUnitLifeControl, CExplosionGenerator
- {
- void CHangarStateControl()
- {
- CUnitLifeControl(50000.0);
- m_DestroyPause = 2.5;
- m_ExplosionId = "EXPLID_HangarExplosion";
- }
-
- void CreateDetonateEffects()
- {
- }
- }
-
- // Building without ground control (for use in villages)
- class CBaseHangar extends CBuilding, CUnitWithStateControl
- {
- void CBaseHangar()
- {
- InitializeModelAsStatic("CHangarMesh");
- CUnitWithStateControl("CHangarStateControl");
- Core_AddClassificator(CLASSIFICATOR_NOTVISIBLEONRADAR);
- }
- }
-
- // Single game object
- class CMountedHangar extends CBaseHangar
- {
- void CMountedHangar()
- {
- InitializeGroundControl();
- }
- }
-
-
-